package com.mezz.bones.user.application.executor.cmd;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mezz.bones.user.application.domain.cmd.SysRoleCreateCmd;
import com.mezz.bones.user.application.domain.cmd.SysRoleDeleteCmd;
import com.mezz.bones.user.application.domain.cmd.SysRoleUpdateCmd;
import com.mezz.bones.user.application.domain.qry.SysRolePageForAppQry;
import com.mezz.bones.user.application.domain.res.SysRoleDetailForAppResponse;
import com.mezz.bones.user.application.domain.res.SysRolePageForAppResponse;

public interface ISysRoleExecutor {
    void execSysRoleCreateCmd(SysRoleCreateCmd cmd);

    void execSysRoleUpdateCmd(SysRoleUpdateCmd cmd);
    void execSysRoleDeleteCmd(SysRoleDeleteCmd cmd);

    SysRoleDetailForAppResponse detailForApp(String id);

    Page<SysRolePageForAppResponse> pageForApp(SysRolePageForAppQry qry);
}
